package com.ssm.platform.pojo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 分组(角色)权限关联表
 * </p>
 *
 * @author jhxxb
 * @since 2021-11-01
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("group_authorities")
@Schema(description = "分组(角色)权限关联表")
public class GroupAuthoritiesDo extends Model<GroupAuthoritiesDo> {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键 ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "组 ID")
    private Long groupId;

    @Schema(description = "权限名")
    private String authority;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
